package com.travel.travelnetwork.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class PageController {
    //访问前台
    @RequestMapping("/desk/{page}")
    public String showDeskindex(@PathVariable String page) {
        return "/desk/"+page;
    }


    //访问后台
    @RequestMapping("/back/{page}")
    public String showBack(@PathVariable String page) {
        return "/back/"+page;
    }

    @RequestMapping("favicon.ico")
    @ResponseBody
    void returnNoFavicon() {}
}
